toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'phoneNumberId'] = this.phoneNumberId;
  if (this.limit != null) {
    json[r'limit'] = this.limit;
  } else {
    json[r'limit'] = null;
  }
    json[r'count'] = this.count;
  if (this.delayTimeout != null) {
    json[r'delayTimeout'] = this.delayTimeout;
  } else {
    json[r'delayTimeout'] = null;
  }
    json[r'timeout'] = this.timeout;
  if (this.unreadOnly != null) {
    json[r'unreadOnly'] = this.unreadOnly;
  } else {
    json[r'unreadOnly'] = null;
  }
  if (this.countType != null) {
    json[r'countType'] = this.countType;
  } else {
    json[r'countType'] = null;
  }
  if (this.matches != null) {
    json[r'matches'] = this.matches;
  } else {
    json[r'matches'] = null;
  }
  if (this.sortDirection != null) {
    json[r'sortDirection'] = this.sortDirection;
  } else {
    json[r'sortDirection'] = null;
  }
  if (this.since != null) {
    json[r'since'] = this.since!.toUtc().toIso8601String();
  } else {
    json[r'since'] = null;
  }
  if (this.before != null) {
    json[r'before'] = this.before!.toUtc().toIso8601String();
  } else {
    json[r'before'] = null;
  }
  return json;
}