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