toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.smsAmount != null) {
    json[r'smsAmount'] = this.smsAmount;
  } else {
    json[r'smsAmount'] = null;
  }
  if (this.smsUnit != null) {
    json[r'smsUnit'] = this.smsUnit;
  } else {
    json[r'smsUnit'] = null;
  }
  if (this.smsLabel != null) {
    json[r'smsLabel'] = this.smsLabel;
  } else {
    json[r'smsLabel'] = null;
  }
  if (this.smsType != null) {
    json[r'smsType'] = this.smsType;
  } else {
    json[r'smsType'] = null;
  }
  return json;
}