DictionaryType

@objcMembers
public final class DictionaryType : NSObject, SourceryModel

Describes dictionary type

  • Type name used in declaration

    Declaration

    Swift

    public var name: String
  • Dictionary value type name

    Declaration

    Swift

    public var valueTypeName: TypeName
  • Dictionary value type, if known

    Declaration

    Swift

    public var valueType: Type?
  • Dictionary key type name

    Declaration

    Swift

    public var keyTypeName: TypeName
  • Dictionary key type, if known

    Declaration

    Swift

    public var keyType: Type?
  • Returns dictionary as generic type

    Declaration

    Swift

    public var asGeneric: GenericType { get }