ContentPermissionRequest.fromJson constructor

ContentPermissionRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ContentPermissionRequest.fromJson(Map<String, Object?> json) {
  return ContentPermissionRequest(
    subject: PermissionSubjectWithGroupId.fromJson(
        json[r'subject'] as Map<String, Object?>? ?? const {}),
    operation: ContentPermissionRequestOperation.fromValue(
        json[r'operation'] as String? ?? ''),
  );
}