toJson method

Map<String, dynamic> toJson()

Converts the AirtableRecord instance to a JSON map.

Returns a map that can be serialized to JSON, containing the id and fields.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'fields': fields,
  };
}