CharacteristicProperties.fromJson constructor
CharacteristicProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CharacteristicProperties.fromJson(Map<String, dynamic> json) {
return CharacteristicProperties(
broadcast: json.containsKey('broadcast')
? json['broadcast'] as bool
: null,
read: json.containsKey('read') ? json['read'] as bool : null,
writeWithoutResponse: json.containsKey('writeWithoutResponse')
? json['writeWithoutResponse'] as bool
: null,
write: json.containsKey('write') ? json['write'] as bool : null,
notify: json.containsKey('notify') ? json['notify'] as bool : null,
indicate: json.containsKey('indicate') ? json['indicate'] as bool : null,
authenticatedSignedWrites: json.containsKey('authenticatedSignedWrites')
? json['authenticatedSignedWrites'] as bool
: null,
extendedProperties: json.containsKey('extendedProperties')
? json['extendedProperties'] as bool
: null,
);
}