Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'getLocalizationTargetInfo', if (extra != null) '@extra': extra, 'only_local': only_local }; }