toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = id;
  data['media_type'] = mediaType;
  data['file_type'] = fileType;
  data['media_url'] = mediaUrl;
  data['media_thumbnail_url'] = mediaThumbnailUrl;
  if (otherImageUrls != null) {
    data['other_image_urls'] = otherImageUrls!.toJson();
  }
  return data;
}