toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'orderId'] = this.orderId;
    json[r'orderItemId'] = this.orderItemId;
  if (this.iccid != null) {
    json[r'iccid'] = this.iccid;
  } else {
    json[r'iccid'] = null;
  }
    json[r'packageName'] = this.packageName;
  if (this.countryImage != null) {
    json[r'countryImage'] = this.countryImage;
  } else {
    json[r'countryImage'] = null;
  }
    json[r'status'] = this.status;
  if (this.day != null) {
    json[r'day'] = this.day;
  } else {
    json[r'day'] = null;
  }
  if (this.isUnlimited != null) {
    json[r'isUnlimited'] = this.isUnlimited;
  } else {
    json[r'isUnlimited'] = null;
  }
  if (this.isApnAutomatic != null) {
    json[r'isApnAutomatic'] = this.isApnAutomatic;
  } else {
    json[r'isApnAutomatic'] = null;
  }
  if (this.withSMS != null) {
    json[r'withSMS'] = this.withSMS;
  } else {
    json[r'withSMS'] = null;
  }
  if (this.withCall != null) {
    json[r'withCall'] = this.withCall;
  } else {
    json[r'withCall'] = null;
  }
  if (this.properties != null) {
    json[r'properties'] = this.properties;
  } else {
    json[r'properties'] = null;
  }
  if (this.esim != null) {
    json[r'esim'] = this.esim;
  } else {
    json[r'esim'] = null;
  }
    json[r'addon'] = this.addon;
  if (this.data != null) {
    json[r'data'] = this.data;
  } else {
    json[r'data'] = null;
  }
  if (this.sms != null) {
    json[r'sms'] = this.sms;
  } else {
    json[r'sms'] = null;
  }
  if (this.voice != null) {
    json[r'voice'] = this.voice;
  } else {
    json[r'voice'] = null;
  }
  if (this.apn != null) {
    json[r'apn'] = this.apn;
  } else {
    json[r'apn'] = null;
  }
  if (this.expiredAt != null) {
    json[r'expiredAt'] = this.expiredAt!.toUtc().toIso8601String();
  } else {
    json[r'expiredAt'] = null;
  }
  return json;
}