LdapServerMetadataOutput.fromJson constructor

LdapServerMetadataOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LdapServerMetadataOutput.fromJson(Map<String, dynamic> json) {
  return LdapServerMetadataOutput(
    hosts: (json['hosts'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    roleBase: json['roleBase'] as String?,
    roleName: json['roleName'] as String?,
    roleSearchMatching: json['roleSearchMatching'] as String?,
    roleSearchSubtree: json['roleSearchSubtree'] as bool?,
    serviceAccountUsername: json['serviceAccountUsername'] as String?,
    userBase: json['userBase'] as String?,
    userRoleName: json['userRoleName'] as String?,
    userSearchMatching: json['userSearchMatching'] as String?,
    userSearchSubtree: json['userSearchSubtree'] as bool?,
  );
}