FMPUtils.RequestResponseParser.Builder

Description

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

class Builder

Methods

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

Parameters:

  • json. JSON structure.

build() Build an instance of the FMPUtils.RequestResponseParser class. It returns the object of the FMPUtils.RequestResponseParser type.

Example

Build an instance of the FMPUtils.RequestResponseParser class:

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

See also:

FMPWrapper Framework | Classes