toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'translateText',
if (extra != null) '@extra': extra,
'text': text,
'to_language_code': to_language_code
};
}