Get the data for a field
Map<String, dynamic> fieldData(Field field) { Map<String, dynamic> json = field.toJson(); return {json["key"]: json["value"]}; }