class CybridApiBank::TradeStateBankModel

def self.build_from_hash(value)

Returns:
  • (String) - The enum value

Parameters:
  • The (String) -- enum value in the form of the string
def self.build_from_hash(value)
  new.build_from_hash(value)
end

def build_from_hash(value)

Returns:
  • (String) - The enum value

Parameters:
  • The (String) -- enum value in the form of the string
def build_from_hash(value)
  constantValues = TradeStateBankModel.constants.select { |c| TradeStateBankModel::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #TradeStateBankModel" if constantValues.empty?
  value
end