toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final hosts = this.hosts;
  final roleBase = this.roleBase;
  final roleName = this.roleName;
  final roleSearchMatching = this.roleSearchMatching;
  final roleSearchSubtree = this.roleSearchSubtree;
  final serviceAccountPassword = this.serviceAccountPassword;
  final serviceAccountUsername = this.serviceAccountUsername;
  final userBase = this.userBase;
  final userRoleName = this.userRoleName;
  final userSearchMatching = this.userSearchMatching;
  final userSearchSubtree = this.userSearchSubtree;
  return {
    if (hosts != null) 'hosts': hosts,
    if (roleBase != null) 'roleBase': roleBase,
    if (roleName != null) 'roleName': roleName,
    if (roleSearchMatching != null) 'roleSearchMatching': roleSearchMatching,
    if (roleSearchSubtree != null) 'roleSearchSubtree': roleSearchSubtree,
    if (serviceAccountPassword != null)
      'serviceAccountPassword': serviceAccountPassword,
    if (serviceAccountUsername != null)
      'serviceAccountUsername': serviceAccountUsername,
    if (userBase != null) 'userBase': userBase,
    if (userRoleName != null) 'userRoleName': userRoleName,
    if (userSearchMatching != null) 'userSearchMatching': userSearchMatching,
    if (userSearchSubtree != null) 'userSearchSubtree': userSearchSubtree,
  };
}