toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
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.iccid != null) {
json[r'iccid'] = this.iccid;
} else {
json[r'iccid'] = null;
}
if (this.travelStartDate != null) {
json[r'travelStartDate'] = _dateFormatter.format(this.travelStartDate!);
} else {
json[r'travelStartDate'] = null;
}
if (this.isInstant != null) {
json[r'isInstant'] = this.isInstant;
} else {
json[r'isInstant'] = null;
}
return json;
}