toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'userId'] = this.userId;
    json[r'inboxId'] = this.inboxId;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'connectorType'] = this.connectorType;
    json[r'syncScheduleType'] = this.syncScheduleType;
  if (this.syncInterval != null) {
    json[r'syncInterval'] = this.syncInterval;
  } else {
    json[r'syncInterval'] = null;
  }
    json[r'syncEnabled'] = this.syncEnabled;
  return json;
}