OneDriveConfiguration.fromJson constructor

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

Implementation

factory OneDriveConfiguration.fromJson(Map<String, dynamic> json) {
  return OneDriveConfiguration(
    oneDriveUsers:
        OneDriveUsers.fromJson(json['OneDriveUsers'] as Map<String, dynamic>),
    secretArn: json['SecretArn'] as String,
    tenantDomain: json['TenantDomain'] as String,
    disableLocalGroups: json['DisableLocalGroups'] as bool?,
    exclusionPatterns: (json['ExclusionPatterns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    fieldMappings: (json['FieldMappings'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DataSourceToIndexFieldMapping.fromJson(e as Map<String, dynamic>))
        .toList(),
    inclusionPatterns: (json['InclusionPatterns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}