CastMediaVolume.fromMap constructor

CastMediaVolume.fromMap(
  1. Map<String, dynamic> map
)

Creates a CastMediaVolume from a map.

map - The map to create the instance from.

Implementation

factory CastMediaVolume.fromMap(Map<String, dynamic> map) {
  return CastMediaVolume(map['level'], map['muted']);
}