DirectoryConfig.fromJson constructor

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

Implementation

factory DirectoryConfig.fromJson(Map<String, dynamic> json) {
  return DirectoryConfig(
    directoryName: json['DirectoryName'] as String,
    createdTime: timeStampFromJson(json['CreatedTime']),
    organizationalUnitDistinguishedNames:
        (json['OrganizationalUnitDistinguishedNames'] as List?)
            ?.whereNotNull()
            .map((e) => e as String)
            .toList(),
    serviceAccountCredentials: json['ServiceAccountCredentials'] != null
        ? ServiceAccountCredentials.fromJson(
            json['ServiceAccountCredentials'] as Map<String, dynamic>)
        : null,
  );
}