toMap method

Map toMap()

Implementation

Map<dynamic, dynamic> toMap() {
  final Map<dynamic, dynamic> data = {};
  data['remote_id'] = remoteId.str;
  data['service_uuid'] = serviceUuid.str;
  data['secondary_service_uuid'] = secondaryServiceUuid?.str;
  data['characteristic_uuid'] = characteristicUuid.str;
  data['descriptor_uuid'] = descriptorUuid.str;
  data['value'] = _hexEncode(value);
  return data;
}