toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.iccid != null) {
json[r'iccid'] = this.iccid;
} else {
json[r'iccid'] = null;
}
if (this.mode != null) {
json[r'mode'] = this.mode;
} else {
json[r'mode'] = null;
}
if (this.provisioning != null) {
json[r'provisioning'] = this.provisioning;
} else {
json[r'provisioning'] = null;
}
if (this.canProvision != null) {
json[r'canProvision'] = this.canProvision;
} else {
json[r'canProvision'] = null;
}
if (this.esimStatus != null) {
json[r'esimStatus'] = this.esimStatus;
} else {
json[r'esimStatus'] = null;
}
if (this.profileStatus != null) {
json[r'profileStatus'] = this.profileStatus;
} else {
json[r'profileStatus'] = null;
}
if (this.installation != null) {
json[r'installation'] = this.installation;
} else {
json[r'installation'] = null;
}
if (this.pin != null) {
json[r'pin'] = this.pin;
} else {
json[r'pin'] = null;
}
if (this.puk != null) {
json[r'puk'] = this.puk;
} else {
json[r'puk'] = null;
}
if (this.phoneNumber != null) {
json[r'phoneNumber'] = this.phoneNumber;
} else {
json[r'phoneNumber'] = null;
}
if (this.data != null) {
json[r'data'] = this.data;
} else {
json[r'data'] = null;
}
if (this.voice != null) {
json[r'voice'] = this.voice;
} else {
json[r'voice'] = null;
}
if (this.sms != null) {
json[r'sms'] = this.sms;
} else {
json[r'sms'] = null;
}
if (this.apn != null) {
json[r'apn'] = this.apn;
} else {
json[r'apn'] = null;
}
json[r'addons'] = this.addons;
json[r'notes'] = this.notes;
if (this.fulfilledAt != null) {
json[r'fulfilledAt'] = this.fulfilledAt!.toUtc().toIso8601String();
} else {
json[r'fulfilledAt'] = null;
}
return json;
}