DetectLanguageRequest.fromJson constructor

DetectLanguageRequest.fromJson(
  1. Map json_
)

Implementation

DetectLanguageRequest.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
      );