GetResourcePolicyResponse.fromJson constructor

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

Implementation

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