UploadDTO constructor

  1. @JsonSerializable()
const UploadDTO({
  1. @JsonKey(name: 'front_document_id') String? frontDocumentId,
  2. @JsonKey(name: 'back_document_id') String? backDocumentId,
  3. @JsonKey(name: 'selfie_document_id') String? selfieDocumentId,
})

Implementation

@JsonSerializable()
const factory UploadDTO({
  @JsonKey(name: 'front_document_id') String? frontDocumentId,
  @JsonKey(name: 'back_document_id') String? backDocumentId,
  @JsonKey(name: 'selfie_document_id') String? selfieDocumentId,
}) = _UploadDTO;