toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (name != null) 'name': name,
    if (uuids != null) 'uuids': [...?uuids],
    if (appearance != null) 'appearance': appearance,
    if (txPower != null) 'txPower': txPower,
    if (manufacturerData != null)
      'manufacturerData': manufacturerData!.map((e) => e.toJson()).toList(),
  };
}