toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.validityDays != null) {
    json[r'validityDays'] = this.validityDays;
  } else {
    json[r'validityDays'] = null;
  }
  if (this.data != null) {
    json[r'data'] = this.data;
  } else {
    json[r'data'] = null;
  }
  if (this.isUnlimited != null) {
    json[r'isUnlimited'] = this.isUnlimited;
  } else {
    json[r'isUnlimited'] = 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;
  }
  if (this.properties != null) {
    json[r'properties'] = this.properties;
  } else {
    json[r'properties'] = null;
  }
  if (this.restrictions != null) {
    json[r'restrictions'] = this.restrictions;
  } else {
    json[r'restrictions'] = null;
  }
    json[r'notes'] = this.notes;
  if (this.plan != null) {
    json[r'plan'] = this.plan;
  } else {
    json[r'plan'] = null;
  }
  return json;
}