RoleMapping.fromJson constructor

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

Implementation

factory RoleMapping.fromJson(Map<String, dynamic> json) {
  return RoleMapping(
    type: (json['Type'] as String).toRoleMappingType(),
    ambiguousRoleResolution: (json['AmbiguousRoleResolution'] as String?)
        ?.toAmbiguousRoleResolutionType(),
    rulesConfiguration: json['RulesConfiguration'] != null
        ? RulesConfigurationType.fromJson(
            json['RulesConfiguration'] as Map<String, dynamic>)
        : null,
  );
}