NotificationDeviceInfo.fromMap constructor
NotificationDeviceInfo.fromMap(
- Map<String, dynamic> map
)
Implementation
factory NotificationDeviceInfo.fromMap(Map<String, dynamic> map) {
return NotificationDeviceInfo(
friendlyName: map['friendlyName'] as String?,
modelNumber: map['modelNumber'] as String?,
deviceType: map['deviceType'] != null
? NotificationDeviceType.fromValue(map['deviceType'] as String)
: null,
connectionType: map['connectionType'] != null
? NotificationConnectionType.fromValue(map['connectionType'] as String)
: null,
deviceIdentifier: map['deviceIdentifier'] != null
? NotificationDeviceIdentifier.fromValue(map['deviceIdentifier'] as String)
: null,
isDefaultDevice: map['isDefaultDevice'] as bool?,
isConnected: map['isConnected'] as bool?,
isLEDSupported: map['isLEDSupported'] as bool?,
isBeepSupported: map['isBeepSupported'] as bool?,
isVibrateSupported: map['isVibrateSupported'] as bool?,
);
}