toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final desiredState = this.desiredState;
  final maintenanceSchedules = this.maintenanceSchedules;
  return {
    if (desiredState != null) 'DesiredState': desiredState.toValue(),
    if (maintenanceSchedules != null)
      'MaintenanceSchedules': maintenanceSchedules,
  };
}