toMap method

  1. @override
Map<String, Object?> toMap()
override

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(),
  };
}