toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final fields = this.fields;
  final id = this.id;
  final name = this.name;
  return {
    'fields': fields,
    'id': id,
    'name': name,
  };
}