GetPolicyResponse.fromJson constructor

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

Implementation

factory GetPolicyResponse.fromJson(Map<String, dynamic> json) {
  return GetPolicyResponse(
    policy: json['Policy'] != null
        ? Policy.fromJson(json['Policy'] as Map<String, dynamic>)
        : null,
    policyArn: json['PolicyArn'] as String?,
  );
}