SpacePermissionCreateSubjectsUser.fromJson constructor

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

Implementation

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