toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (activeState != null) 'activeState': activeState!,
if (clientStatus != null) 'clientStatus': clientStatus!,
if (drainingState != null) 'drainingState': drainingState!,
if (errorState != null) 'errorState': errorState!,
if (name != null) 'name': name!,
if (warmingState != null) 'warmingState': warmingState!,
};