SpacePermissionSubjectsUser.fromJson constructor

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

Implementation

factory SpacePermissionSubjectsUser.fromJson(Map<String, Object?> json) {
  return SpacePermissionSubjectsUser(
    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,
    start: (json[r'start'] as num?)?.toInt(),
    limit: (json[r'limit'] as num?)?.toInt(),
  );
}