toJson method

Map<String, dynamic> toJson()

Convert the Field to a Map

Implementation

Map<String, dynamic> toJson() {
  return {
    "key": key,
    "value": value,
  };
}