toJson method

Map<String, dynamic> toJson()

Serializes a row to a Map

in the format used by the Server for GridData.fromJson and GridData.toJson

Implementation

Map<String, dynamic> toJson() => {
      '_id': id,
      'fields': entries.map((e) => e.data.schemaValue).toList(),
    };