Media.fromJson constructor

Media.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Media.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  mediaType = json['media_type'];
  mediaUrl = json['media_url'];
  fileType = json['file_type'];
  mediaThumbnailUrl = json['media_thumbnail_url'];
  otherImageUrls = json['other_image_urls'] != null
      ? OtherImageUrls.fromJson(json['other_image_urls'])
      : null;
}