toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'iccid'] = this.iccid;
json[r'status'] = this.status;
json[r'capturedAt'] = this.capturedAt.toUtc().toIso8601String();
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;
}
json[r'isUnlimited'] = this.isUnlimited;
json[r'usageBand'] = this.usageBand;
json[r'expiryBand'] = this.expiryBand;
json[r'allowedData'] = this.allowedData;
json[r'remainingData'] = this.remainingData;
json[r'allowedSms'] = this.allowedSms;
json[r'remainingSms'] = this.remainingSms;
json[r'allowedVoice'] = this.allowedVoice;
json[r'remainingVoice'] = this.remainingVoice;
return json;
}