@override Map<String, dynamic> toJson() { return { 'type': 'uri', 'uri': uri, if (subAction != null) 'subAction': subAction!.toJson(), }; }