AirtableRecord.fromJson constructor

AirtableRecord.fromJson(
  1. Map<String, dynamic> json
)

Creates an AirtableRecord instance from a JSON map.

  • json: A map representing the JSON object returned from the Airtable API.

Returns an instance of AirtableRecord.

Implementation

factory AirtableRecord.fromJson(Map<String, dynamic> json) {
  return AirtableRecord(
    id: json['id'] as String,
    fields: Map<String, dynamic>.from(json['fields'] ?? {}),
  );
}