toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {
    "serviceUrl": serviceUrl,
  };

  if (failIfNoService != null) result["failIfNoService"] = failIfNoService;
  if (httpHeaders != null) result["httpHeaders"] = httpHeaders;

  return result;
}