toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = Map<String, dynamic>();
  data['fileId'] = fileId;
  data['name'] = name;
  data['size'] = size;
  if (versionInfo != null) {
    data['versionInfo'] = versionInfo!.toJson();
  }
  data['filePath'] = filePath;
  data['url'] = url;
  data['fileType'] = fileType;
  data['height'] = height;
  data['width'] = width;
  data['thumbnailUrl'] = thumbnailUrl;
  if (aITags != null) {
    data['AITags'] = aITags!.map((v) => v.toJson()).toList();
  }
  return data;
}