fromJson static method

OdooRecord fromJson(
  1. Map<String, Object> json
)

Creates OdooRecord from JSON returned by search_read() or cache.

Implementation

static OdooRecord fromJson(Map<String, Object> json) {
  return OdooRecord(json['id'] as int);
}