toJson method

Map<String, dynamic> toJson()

Implementation

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