fromJson static method

DeviceServerToken fromJson(
  1. Map json
)

Implementation

static DeviceServerToken fromJson(Map json) {
  return DeviceServerToken(
    id: json['id'],
    deviceId: json['device_id'],
    deviceName: json['device_name'],
    deviceType: json['device_type'],
    deviceCity: json['device_city'],
    deviceCountry: json['device_country'],
    deviceIifd: json['device_iifd'],
    deviceIp: json['device_ip'],
    deviceIsp: json['device_isp'],
    deviceLocation: json['device_location'],
    deviceOsVersion: json['device_os_version'],
    deviceZip: json['device_zip'],
    devicePublicKey: json['device_public_key'],
    rewardTypeId: json['reward_type_id'],
    createdAt: json['created_at'],
    updatedAt: json['updated_at'],
  );
}