AdaptiveMtTranslateRequest.fromJson constructor

AdaptiveMtTranslateRequest.fromJson(
  1. Map json_
)

Implementation

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