toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'connectorType'] = this.connectorType;
json[r'connectorAuthType'] = this.connectorAuthType;
if (this.imapSettings != null) {
json[r'imapSettings'] = this.imapSettings;
} else {
json[r'imapSettings'] = null;
}
if (this.inboxId != null) {
json[r'inboxId'] = this.inboxId;
} else {
json[r'inboxId'] = null;
}
json[r'syncEnabled'] = this.syncEnabled;
json[r'syncScheduleType'] = this.syncScheduleType;
if (this.syncInterval != null) {
json[r'syncInterval'] = this.syncInterval;
} else {
json[r'syncInterval'] = null;
}
return json;
}