toJson property
dynamic
get
toJson
Serialize current instance object into Map.
Implementation
dynamic get toJson {
final map = <String, dynamic>{
'proximityUUID': proximityUUID,
'major': major,
'minor': minor,
'txPower': txPower,
};
if (advertisingMode != null) {
map['advertisingMode'] = advertisingMode!.index;
}
if (advertisingTxPowerLevel != null) {
map['advertisingTxPowerLevel'] = advertisingTxPowerLevel!.index;
}
if (identifier != null) {
map['identifier'] = identifier!;
}
return map;
}