Authorizer.fromJson constructor
Authorizer.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Authorizer.fromJson(Map<String, dynamic> json) {
return Authorizer(
authType: json['authType'] as String?,
authorizerCredentials: json['authorizerCredentials'] as String?,
authorizerResultTtlInSeconds:
json['authorizerResultTtlInSeconds'] as int?,
authorizerUri: json['authorizerUri'] as String?,
id: json['id'] as String?,
identitySource: json['identitySource'] as String?,
identityValidationExpression:
json['identityValidationExpression'] as String?,
name: json['name'] as String?,
providerARNs: (json['providerARNs'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
type: (json['type'] as String?)?.toAuthorizerType(),
);
}