PutPolicyResponse.fromJson constructor

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

Implementation

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