toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "method": METHOD_NAME,
      "params": List<dynamic>.from(params.map((x) => x)),
      "id": id,
      "key": key,
    };