toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.defaultExpirationMillis != null) {
json[r'defaultExpirationMillis'] = this.defaultExpirationMillis;
} else {
json[r'defaultExpirationMillis'] = null;
}
if (this.maxExpirationMillis != null) {
json[r'maxExpirationMillis'] = this.maxExpirationMillis;
} else {
json[r'maxExpirationMillis'] = null;
}
if (this.defaultExpiresAt != null) {
json[r'defaultExpiresAt'] = this.defaultExpiresAt!.toUtc().toIso8601String();
} else {
json[r'defaultExpiresAt'] = null;
}
json[r'canPermanentInbox'] = this.canPermanentInbox;
json[r'nextInboxAllowsPermanent'] = this.nextInboxAllowsPermanent;
return json;
}