toJson method
Implementation
Map<String, dynamic> toJson() {
final id = this.id;
final accessControlList = this.accessControlList;
final attributes = this.attributes;
final blob = this.blob;
final contentType = this.contentType;
final s3Path = this.s3Path;
final title = this.title;
return {
'Id': id,
if (accessControlList != null) 'AccessControlList': accessControlList,
if (attributes != null) 'Attributes': attributes,
if (blob != null) 'Blob': base64Encode(blob),
if (contentType != null) 'ContentType': contentType.toValue(),
if (s3Path != null) 'S3Path': s3Path,
if (title != null) 'Title': title,
};
}