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