Query$GetDeviceByIdV2$deviceByIdV2$plusDevice.fromJson constructor

Query$GetDeviceByIdV2$deviceByIdV2$plusDevice.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Query$GetDeviceByIdV2$deviceByIdV2$plusDevice.fromJson(
  Map<String, dynamic> json,
) {
  final l$mepKey = json['mepKey'];
  final l$opticalKey = json['opticalKey'];
  final l$gpk60Key = json['gpk60Key'];
  final l$gpk61Key = json['gpk61Key'];
  final l$localMqttEnabled = json['localMqttEnabled'];
  final l$localMqttBroker = json['localMqttBroker'];
  final l$localMqttPort = json['localMqttPort'];
  final l$localMqttUser = json['localMqttUser'];
  final l$localMqttPassword = json['localMqttPassword'];
  final l$blinksPerKwh = json['blinksPerKwh'];
  final l$allTimesHighConsumption = json['allTimesHighConsumption'];
  final l$allTimesHighProduction = json['allTimesHighProduction'];
  final l$hasProduction = json['hasProduction'];
  final l$errorCode = json['errorCode'];
  final l$isOnline = json['isOnline'];
  final l$rmsCurrentMaxPerPhaseAmpere = json['rmsCurrentMaxPerPhaseAmpere'];
  final l$consumptionAlarmMaxWh = json['consumptionAlarmMaxWh'];
  final l$deviceType = json['deviceType'];
  final l$$__typename = json['__typename'];
  return Query$GetDeviceByIdV2$deviceByIdV2$plusDevice(
    mepKey: (l$mepKey as String?),
    opticalKey: (l$opticalKey as String?),
    gpk60Key: (l$gpk60Key as String?),
    gpk61Key: (l$gpk61Key as String?),
    localMqttEnabled: (l$localMqttEnabled as bool?),
    localMqttBroker: (l$localMqttBroker as String?),
    localMqttPort: (l$localMqttPort as int?),
    localMqttUser: (l$localMqttUser as String?),
    localMqttPassword: (l$localMqttPassword as String?),
    blinksPerKwh: (l$blinksPerKwh as int?),
    allTimesHighConsumption: (l$allTimesHighConsumption as num?)?.toDouble(),
    allTimesHighProduction: (l$allTimesHighProduction as num?)?.toDouble(),
    hasProduction: (l$hasProduction as bool?),
    errorCode: (l$errorCode as String?),
    isOnline: (l$isOnline as bool),
    rmsCurrentMaxPerPhaseAmpere: (l$rmsCurrentMaxPerPhaseAmpere as num?)
        ?.toDouble(),
    consumptionAlarmMaxWh: (l$consumptionAlarmMaxWh as int?),
    deviceType: l$deviceType == null
        ? null
        : Query$GetDeviceByIdV2$deviceByIdV2$plusDevice$deviceType.fromJson(
            (l$deviceType as Map<String, dynamic>),
          ),
    $__typename: (l$$__typename as String),
  );
}