JavaScriptResponse.fromJson(Map<String, dynamic> json) : type = json['type'], payload = json['payload'];