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