String

struct String

Adds convenience method for String.

  • Convenience method for setting optional values from empty strings in JSON objects.

    Declaration

    Swift

    public var nonEmpty:String?

    Return Value

    self if self is not empty, nil otherwise.