toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (enable != null) {
    _json[r'Enable'] = enable;
  }
  if (ldapServer != null) {
    _json[r'LdapServer'] = ldapServer;
  }
  if (ldapPort != null) {
    _json[r'LdapPort'] = ldapPort;
  }
  if (connectionSecurity != null) {
    _json[r'ConnectionSecurity'] = connectionSecurity;
  }
  if (baseDN != null) {
    _json[r'BaseDN'] = baseDN;
  }
  if (bindUsername != null) {
    _json[r'BindUsername'] = bindUsername;
  }
  if (bindPassword != null) {
    _json[r'BindPassword'] = bindPassword;
  }
  if (userFilter != null) {
    _json[r'UserFilter'] = userFilter;
  }
  if (firstNameAttribute != null) {
    _json[r'FirstNameAttribute'] = firstNameAttribute;
  }
  if (lastNameAttribute != null) {
    _json[r'LastNameAttribute'] = lastNameAttribute;
  }
  if (emailAttribute != null) {
    _json[r'EmailAttribute'] = emailAttribute;
  }
  if (usernameAttribute != null) {
    _json[r'UsernameAttribute'] = usernameAttribute;
  }
  if (nicknameAttribute != null) {
    _json[r'NicknameAttribute'] = nicknameAttribute;
  }
  if (idAttribute != null) {
    _json[r'IdAttribute'] = idAttribute;
  }
  if (positionAttribute != null) {
    _json[r'PositionAttribute'] = positionAttribute;
  }
  if (syncIntervalMinutes != null) {
    _json[r'SyncIntervalMinutes'] = syncIntervalMinutes;
  }
  if (skipCertificateVerification != null) {
    _json[r'SkipCertificateVerification'] = skipCertificateVerification;
  }
  if (queryTimeout != null) {
    _json[r'QueryTimeout'] = queryTimeout;
  }
  if (maxPageSize != null) {
    _json[r'MaxPageSize'] = maxPageSize;
  }
  if (loginFieldName != null) {
    _json[r'LoginFieldName'] = loginFieldName;
  }
  return _json;
}