import 'package:json_annotation/json_annotation.dart';

import '../../../base/app_base_request.dart';

part 'talk_create_request.g.dart';

@JsonSerializable()
class TalkCreateRequest extends AppBaseRequest {
  @JsonKey(name: 'duration')
  final int duration;

  @JsonKey(name: 'requestId')
  final String requestId;

  @JsonKey(name: 'localAudioUrl')
  String? localAudioUrl;

  @JsonKey(name: 'uploadType')
  int? uploadType;

  TalkCreateRequest(this.duration, this.requestId,
      {this.localAudioUrl, this.uploadType});

  @override
  Map<String, dynamic> toJson() => _$TalkCreateRequestToJson(this);
}
