toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (baseUnit != null) 'baseUnit': baseUnit!,
if (baseUnitConversionFactor != null)
'baseUnitConversionFactor': baseUnitConversionFactor!,
if (baseUnitDescription != null)
'baseUnitDescription': baseUnitDescription!,
if (displayQuantity != null) 'displayQuantity': displayQuantity!,
if (tieredRates != null) 'tieredRates': tieredRates!,
if (usageUnit != null) 'usageUnit': usageUnit!,
if (usageUnitDescription != null)
'usageUnitDescription': usageUnitDescription!,
};