FMPUtils.QueryResultParser.Builder

Description

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

class Builder

Methods

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

Parameters:

  • json. JSON structure.

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

Example

Build an instance of the FMPUtils.QueryResultParser class:

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

See also:

FMPWrapper Framework | Classes