# typed: strict # frozen_string_literal: true require "nexus/invision/value_object" require "sorbet-runtime" module Nexus module Invision module Resources class Group < T::Struct include ValueObject const :id, Integer const :name, String class << self extend T::Sig sig { params(response: T::Hash[String, T.untyped]).returns(Group) } def from_response(response) Group.new( id: response["id"], name: response["name"], ) end end end end end end