toJson method

Map<String, dynamic> toJson()

Creates JSON from OdooRecord compatible with fromJson. Used to cache records.

Implementation

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