DictionaryType

@objcMembers
public final class DictionaryType : NSObject, SourceryModel, Diffable
extension DictionaryType: NSCoding

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 }
  • Declaration

    Swift

    public var asSource: String { get }
  • Declaration

    Swift

    public func diffAgainst(_ object: Any?) -> DiffableResult