toJson method

Map<String, dynamic> toJson()

Implementation

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