SpacePermissionCreateSubjectsGroup.fromJson constructor

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

Implementation

factory SpacePermissionCreateSubjectsGroup.fromJson(
    Map<String, Object?> json) {
  return SpacePermissionCreateSubjectsGroup(
    results: (json[r'results'] as List<Object?>?)
            ?.map((i) =>
                GroupCreate.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    size: (json[r'size'] as num?)?.toInt() ?? 0,
  );
}