SpacePermissionCustomContent.fromJson constructor

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

Implementation

factory SpacePermissionCustomContent.fromJson(Map<String, Object?> json) {
  return SpacePermissionCustomContent(
    subject: PermissionSubject.fromJson(
        json[r'subject'] as Map<String, Object?>? ?? const {}),
    operations: (json[r'operations'] as List<Object?>?)
            ?.map((i) => SpacePermissionCustomContentOperationsItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}