fromJson method

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

Implementation

fromJson(Map<String, dynamic>? json) {
  if (json != null) {
    displayName = json["displayName"];
    osName = json['osName'];
    deviceType = json['deviceType'];
    make = json['make'];
    model = json['model'];
    osVersion = json['osVersion'];
    remoteId = json['remoteId'];
    if (json['lastLocation'] != null) {
      x = json['lastLocation']['x'];
      y = json['lastLocation']['y'];
      height = json['lastLocation']['height'];
      crs = json['lastLocation']['crs'];
    }
    lastAppVersionCode = json['lastAppVersionCode'];
    lastAppVersionName = json['lastAppVersionName'];
    pushId = json['pushId'];
    allowPush = json['allowPush'];
    meta = json['meta'];
  }
}