Media.fromJson constructor

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

Implementation

factory Media.fromJson(Map<String, dynamic> json) => Media(
      location: ResourceLocation.fromJson(
        json['location'] as Map<String, dynamic>,
      ),
      contentDescription: json['contentDescription'] as String?,
    );