VersionInfoResponse.from constructor

VersionInfoResponse.from({
  1. required int statusCode,
  2. required String reasonPhrase,
  3. required Map<String, String> headers,
  4. required String ttsCdnUrl,
  5. required int ageRestrictionLimit,
  6. required String country,
  7. required String apiBaseUrl,
  8. required String speechHost,
  9. required String ttsBaseUrl,
  10. required String dictBaseUrl,
  11. required TtsVoiceConfiguration ttsVoiceConfiguration,
  12. required List<SupportedDirection> supportedDirections,
})

Returns the new instance of VersionInfoResponse based on arguments.

Implementation

VersionInfoResponse.from({
  required int statusCode,
  required String reasonPhrase,
  required Map<String, String> headers,
  required this.ttsCdnUrl,
  required this.ageRestrictionLimit,
  required this.country,
  required this.apiBaseUrl,
  required this.speechHost,
  required this.ttsBaseUrl,
  required this.dictBaseUrl,
  required this.ttsVoiceConfiguration,
  required this.supportedDirections,
}) : super.from(
        status: Status.from(
          code: statusCode,
          reasonPhrase: reasonPhrase,
        ),
        headers: headers,
      );