toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['device_id'] = this.deviceId;
  data['push_token'] = this.pushToken;
  data['os_type'] = this.osType;
  data['os_version'] = this.osVersion;
  data['country'] = this.country;
  data['language'] = this.language;
  data['timezone'] = this.timezone;
  data['manufacturer'] = this.manufacturer;
  data['brand'] = this.brand;
  data['model_no'] = this.modelNo;
  data['carrier'] = this.carrier;
  if (this.app != null) {
    data['app'] = this.app!.toJson();
  }
  return data;
}