toMap method
Implementation
@override
Map<String, Object?> toMap() {
return {
'type': type,
'id': id,
'name': name,
'input': input,
if (annotations != null) 'annotations': annotations!.toMap(),
if ($meta != null) '_meta': $meta!.toMap(),
};
}