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