AdaptiveMtTranslateResponse.fromJson constructor

AdaptiveMtTranslateResponse.fromJson(
  1. Map json_
)

Implementation

AdaptiveMtTranslateResponse.fromJson(core.Map json_)
    : this(
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        translations: json_.containsKey('translations')
            ? (json_['translations'] as core.List)
                .map((value) => AdaptiveMtTranslation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );