fromJson static method
Creates a new MediaContent object based on a json.
This is usually by the controller to receive the info from the platform side
Implementation
static MediaContent fromJson(map) {
return MediaContent(
duration: Duration(
milliseconds: (map['duration'] as double).toInt() * 100000,
),
aspectRatio: map['aspectRatio'],
hasVideoContent: map['hasVideoContent'],
);
}