toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'iccid'] = this.iccid;
json[r'status'] = this.status;
if (this.start != null) {
json[r'start'] = this.start!.toUtc().toIso8601String();
} else {
json[r'start'] = null;
}
if (this.end != null) {
json[r'end'] = this.end!.toUtc().toIso8601String();
} else {
json[r'end'] = null;
}
if (this.allowedData != null) {
json[r'allowedData'] = this.allowedData;
} else {
json[r'allowedData'] = null;
}
if (this.remainingData != null) {
json[r'remainingData'] = this.remainingData;
} else {
json[r'remainingData'] = null;
}
if (this.allowedSms != null) {
json[r'allowedSms'] = this.allowedSms;
} else {
json[r'allowedSms'] = null;
}
if (this.remainingSms != null) {
json[r'remainingSms'] = this.remainingSms;
} else {
json[r'remainingSms'] = null;
}
if (this.allowedVoice != null) {
json[r'allowedVoice'] = this.allowedVoice;
} else {
json[r'allowedVoice'] = null;
}
if (this.remainingVoice != null) {
json[r'remainingVoice'] = this.remainingVoice;
} else {
json[r'remainingVoice'] = null;
}
json[r'usages'] = this.usages;
return json;
}