FMPUtils.Parser.Builder

Description

The FMPUtils.Parser.Builder class is a builder for the FMPUtils.Parser class.

class Builder

Methods

Method Description
json(_:) Save the JSON structure, with which FMPUtils.Parser will work, to variable.
func json(_ json: NSDictionary) -> Builder

Parameters:

  • json. JSON structure.

build() Build an instance of the FMPUtils.Parser class. It returns the object of the FMPUtils.Parser type.
func build() -> FMPUtils.Parser

Example

Build an instance of the FMPUtils.Parser class:

// Build an instance of the FMPUtils.Parser class
let parser: FMPUtils.Parser = FMPUtils().parser
    .json(["key":"value"]) // By default [:]
    .build()

See also:

FMPWrapper Framework | Classes