ResourcePolicyPage.fromJson constructor
ResourcePolicyPage.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourcePolicyPage.fromJson(Map<String, dynamic> json) {
final list = json['access_grants'] as List<dynamic>? ?? [];
return ResourcePolicyPage(
resource: AccessResource.fromJson((json['resource'] as Map).cast<String, dynamic>()),
accessGrants: list.whereType<Map<String, dynamic>>().map(ProjectRoomGrant.fromJson).toList(),
continuationToken: json['continuation_token'] as String?,
);
}