toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bluetooth = this.bluetooth;
  final gps = this.gps;
  final nfc = this.nfc;
  final wifi = this.wifi;
  return {
    if (bluetooth != null) 'bluetooth': bluetooth,
    if (gps != null) 'gps': gps,
    if (nfc != null) 'nfc': nfc,
    if (wifi != null) 'wifi': wifi,
  };
}