Map<String, dynamic> toJson() { final map = <String, dynamic>{}; map['method'] = method; return map; }