AdaptiveMtTranslateRequest.fromJson constructor

AdaptiveMtTranslateRequest.fromJson(
  1. Map json_
)

Implementation

AdaptiveMtTranslateRequest.fromJson(core.Map json_)
    : this(
        content: (json_['content'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        dataset: json_['dataset'] as core.String?,
        glossaryConfig: json_.containsKey('glossaryConfig')
            ? GlossaryConfig.fromJson(json_['glossaryConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        referenceSentenceConfig: json_.containsKey('referenceSentenceConfig')
            ? ReferenceSentenceConfig.fromJson(
                json_['referenceSentenceConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );