PutResourcePolicyResponse.fromJson constructor

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

Implementation

factory PutResourcePolicyResponse.fromJson(Map<String, dynamic> json) {
  return PutResourcePolicyResponse(
    policy:
        json['Policy'] == null ? null : jsonDecode(json['Policy'] as String),
    revisionId: json['RevisionId'] as String?,
  );
}