toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (carbonFreeEnergyPercentage != null)
    'carbonFreeEnergyPercentage': carbonFreeEnergyPercentage!,
  if (cloudLocationType != null) 'cloudLocationType': cloudLocationType!,
  if (cloudProvider != null) 'cloudProvider': cloudProvider!,
  if (containingCloudLocation != null)
    'containingCloudLocation': containingCloudLocation!,
  if (displayName != null) 'displayName': displayName!,
  if (name != null) 'name': name!,
  if (territoryCode != null) 'territoryCode': territoryCode!,
};