toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"attempted_at": encodeValue(attemptedAt),
if (contentType != null) "content_type": encodeValue(contentType),
if (declaredSize != null) "declared_size": encodeValue(declaredSize),
if (error != null) "error": encodeValue(error),
if (failedAt != null) "failed_at": encodeValue(failedAt),
if (fileId != null) "file_id": encodeValue(fileId),
if (filename != null) "filename": encodeValue(filename),
"id": encodeValue(id),
"ordinal": encodeValue(ordinal),
if (review != null) "review": encodeValue(review),
"status": encodeValue(status),
if (succeededAt != null) "succeeded_at": encodeValue(succeededAt),
"upload_request_id": encodeValue(uploadRequestId),
};