TestInvokeAuthorizerResponse.fromJson constructor
TestInvokeAuthorizerResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TestInvokeAuthorizerResponse.fromJson(Map<String, dynamic> json) {
return TestInvokeAuthorizerResponse(
authorization: (json['authorization'] as Map<String, dynamic>?)?.map(
(k, e) => MapEntry(
k, (e as List).whereNotNull().map((e) => e as String).toList())),
claims: (json['claims'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
clientStatus: json['clientStatus'] as int?,
latency: json['latency'] as int?,
log: json['log'] as String?,
policy: json['policy'] as String?,
principalId: json['principalId'] as String?,
);
}