toJson method

Map<String, dynamic> toJson()

Serializes the WebViewRequest to JSON.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'uri': uri.toString(),
      'method': method.serialize(),
      'headers': headers,
      'body': body,
    };