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