core.Map<core.String, core.dynamic> toJson() => { if (routine != null) 'routine': routine!, if (step != null) 'step': step!, };