Upload.fromJson constructor
Implementation
factory Upload.fromJson(Map<String, dynamic> json) {
return Upload(
arn: json['arn'] as String?,
category: (json['category'] as String?)?.toUploadCategory(),
contentType: json['contentType'] as String?,
created: timeStampFromJson(json['created']),
message: json['message'] as String?,
metadata: json['metadata'] as String?,
name: json['name'] as String?,
status: (json['status'] as String?)?.toUploadStatus(),
type: (json['type'] as String?)?.toUploadType(),
url: json['url'] as String?,
);
}