toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'width': width,
'height': height,
'file_key': fileKey,
'file_url': fileUrl,
'url': fileUrl,
if (thumbnailUrl != null) 'thumbnail_url': thumbnailUrl,
'blur_hash': blurHash,
'file_name': fileName,
'file_size': fileSize,
'file_type': fileType,
'type': fileType,
'content_type': contentType,
};
}