toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r's3Key'] = this.s3Key;
json[r'originalFileName'] = this.originalFileName;
json[r'sizeBytes'] = this.sizeBytes;
json[r'contentType'] = this.contentType;
json[r'uploadedByUserId'] = this.uploadedByUserId;
json[r'uploadedAt'] = this.uploadedAt;
json[r'url'] = this.url;
json[r'expiresAt'] = this.expiresAt;
if (this.expired != null) {
json[r'expired'] = this.expired;
} else {
json[r'expired'] = null;
}
return json;
}