toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _resultData = <String, dynamic>{};
  final l$id = id;
  _resultData['id'] = idToJson(l$id);
  final l$alias = alias;
  _resultData['alias'] = l$alias;
  final l$serial = serial;
  _resultData['serial'] = l$serial;
  final l$allTimesHighConsumption = allTimesHighConsumption;
  _resultData['allTimesHighConsumption'] = l$allTimesHighConsumption;
  final l$allTimesHighProduction = allTimesHighProduction;
  _resultData['allTimesHighProduction'] = l$allTimesHighProduction;
  final l$hasProduction = hasProduction;
  _resultData['hasProduction'] = l$hasProduction;
  final l$blinksPerKwh = blinksPerKwh;
  _resultData['blinksPerKwh'] = l$blinksPerKwh;
  final l$errorCode = errorCode;
  _resultData['errorCode'] = l$errorCode;
  final l$rmsCurrentMaxPerPhaseAmpere = rmsCurrentMaxPerPhaseAmpere;
  _resultData['rmsCurrentMaxPerPhaseAmpere'] = l$rmsCurrentMaxPerPhaseAmpere;
  final l$deviceType = deviceType;
  _resultData['deviceType'] = l$deviceType.toJson();
  final l$remoteDevices = remoteDevices;
  _resultData['remoteDevices'] = l$remoteDevices
      .map((e) => e.toJson())
      .toList();
  final l$baseDevice = baseDevice;
  _resultData['baseDevice'] = l$baseDevice?.toJson();
  final l$$__typename = $__typename;
  _resultData['__typename'] = l$$__typename;
  return _resultData;
}