IosBluetoothOptions.fromMap constructor
IosBluetoothOptions.fromMap(
- Map map
Creates options from a serialized map.
Implementation
factory IosBluetoothOptions.fromMap(Map<dynamic, dynamic> map) {
return IosBluetoothOptions(
restoreIdentifier: map['restoreIdentifier'] as String?,
scanTimeoutMs: (map['scanTimeoutMs'] as num?)?.toInt(),
allowDuplicates: map['allowDuplicates'] as bool? ?? false,
autoReconnect: map['autoReconnect'] as bool? ?? true,
filters: _objectMap(map['filters']),
);
}