BmCharacteristicProperties.fromMap constructor

BmCharacteristicProperties.fromMap(
  1. Map json
)

Implementation

factory BmCharacteristicProperties.fromMap(Map<dynamic, dynamic> json) {
  return BmCharacteristicProperties(
    broadcast: json['broadcast'] != 0,
    read: json['read'] != 0,
    writeWithoutResponse: json['write_without_response'] != 0,
    write: json['write'] != 0,
    notify: json['notify'] != 0,
    indicate: json['indicate'] != 0,
    authenticatedSignedWrites: json['authenticated_signed_writes'] != 0,
    extendedProperties: json['extended_properties'] != 0,
    notifyEncryptionRequired: json['notify_encryption_required'] != 0,
    indicateEncryptionRequired: json['indicate_encryption_required'] != 0,
  );
}