GoogleCloudDialogflowV2Agent.fromJson constructor

GoogleCloudDialogflowV2Agent.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2Agent.fromJson(core.Map json_)
    : this(
        apiVersion: json_.containsKey('apiVersion')
            ? json_['apiVersion'] as core.String
            : null,
        avatarUri: json_.containsKey('avatarUri')
            ? json_['avatarUri'] as core.String
            : null,
        classificationThreshold: json_.containsKey('classificationThreshold')
            ? (json_['classificationThreshold'] as core.num).toDouble()
            : null,
        defaultLanguageCode: json_.containsKey('defaultLanguageCode')
            ? json_['defaultLanguageCode'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enableLogging: json_.containsKey('enableLogging')
            ? json_['enableLogging'] as core.bool
            : null,
        matchMode: json_.containsKey('matchMode')
            ? json_['matchMode'] as core.String
            : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        supportedLanguageCodes: json_.containsKey('supportedLanguageCodes')
            ? (json_['supportedLanguageCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tier: json_.containsKey('tier') ? json_['tier'] as core.String : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
      );