toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'inboxId'] = this.inboxId;
  if (this.count != null) {
    json[r'count'] = this.count;
  } else {
    json[r'count'] = null;
  }
  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;
}