GoogleCastIosDevice.fromMap constructor

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

Creates a GoogleCastIosDevice from a map, typically from platform channel data.

Implementation

factory GoogleCastIosDevice.fromMap(Map<String, dynamic> map) {
  return GoogleCastIosDevice(
    deviceID: map['deviceID'] as String,
    friendlyName: map['friendlyName'] ?? '',
    modelName: map['modelName'],
    statusText: map['statusText'],
    deviceVersion: map['deviceVersion'] ?? '',
    isOnLocalNetwork: map['isOnLocalNetwork'] as bool,
    category: map['category'] as String,
    uniqueID: map['uniqueID'] as String,
    index: map['index'],
  );
}