GoogleCastAndroidDevice.fromMap constructor

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

Implementation

factory GoogleCastAndroidDevice.fromMap(Map<String, dynamic> map) {
  return GoogleCastAndroidDevice(
    deviceID: map['id'],
    friendlyName: map['name'],
    modelName: map['model_name'],
    deviceVersion: map['device_version'],
    category: '',
    isOnLocalNetwork: map['is_on_local_network'],
    statusText: null,
    uniqueID: map['id'],
  );
}