OAuth2MapperConfig.fromJson constructor

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

Implementation

OAuth2MapperConfig.fromJson(Map<String, dynamic> json)
    : allowUserCreation = json['allowUserCreation'],
      activateUser = json['activateUser'],
      type = mapperTypeFromString(json['type']),
      basic = json['basic'] != null
          ? OAuth2BasicMapperConfig.fromJson(json['basic'])
          : null,
      custom = json['custom'] != null
          ? OAuth2CustomMapperConfig.fromJson(json['custom'])
          : null;