toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.isInstant != null) {
    json[r'isInstant'] = this.isInstant;
  } else {
    json[r'isInstant'] = null;
  }
  if (this.eid != null) {
    json[r'eid'] = this.eid;
  } else {
    json[r'eid'] = null;
  }
  if (this.imei2 != null) {
    json[r'imei2'] = this.imei2;
  } else {
    json[r'imei2'] = null;
  }
  if (this.travelStartDate != null) {
    json[r'travelStartDate'] = _dateFormatter.format(this.travelStartDate!);
  } else {
    json[r'travelStartDate'] = null;
  }
  if (this.iccid != null) {
    json[r'iccid'] = this.iccid;
  } else {
    json[r'iccid'] = null;
  }
  if (this.maxPrice != null) {
    json[r'maxPrice'] = this.maxPrice;
  } else {
    json[r'maxPrice'] = null;
  }
  return json;
}