toJson method
Implementation
Map<String, dynamic> toJson() => {
'countryCode': country?.code,
'countrySubdivisionCode': countrySubdivisionCode,
'languageCode': languageCode,
'deviceType': deviceType?.name,
'sentiment': sentimentType?.type,
'textDirection': textDirection?.index
};