EventingConfigTemplate.fromJson constructor

EventingConfigTemplate.fromJson(
  1. Map json_
)

Implementation

EventingConfigTemplate.fromJson(core.Map json_)
    : this(
        additionalVariables: json_.containsKey('additionalVariables')
            ? (json_['additionalVariables'] as core.List)
                .map((value) => ConfigVariableTemplate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        authConfigTemplates: json_.containsKey('authConfigTemplates')
            ? (json_['authConfigTemplates'] as core.List)
                .map((value) => AuthConfigTemplate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        autoRefresh: json_.containsKey('autoRefresh')
            ? json_['autoRefresh'] as core.bool
            : null,
        autoRegistrationSupported:
            json_.containsKey('autoRegistrationSupported')
                ? json_['autoRegistrationSupported'] as core.bool
                : null,
        encryptionKeyTemplate: json_.containsKey('encryptionKeyTemplate')
            ? ConfigVariableTemplate.fromJson(json_['encryptionKeyTemplate']
                as core.Map<core.String, core.dynamic>)
            : null,
        enrichmentSupported: json_.containsKey('enrichmentSupported')
            ? json_['enrichmentSupported'] as core.bool
            : null,
        eventListenerType: json_.containsKey('eventListenerType')
            ? json_['eventListenerType'] as core.String
            : null,
        isEventingSupported: json_.containsKey('isEventingSupported')
            ? json_['isEventingSupported'] as core.bool
            : null,
        listenerAuthConfigTemplates:
            json_.containsKey('listenerAuthConfigTemplates')
                ? (json_['listenerAuthConfigTemplates'] as core.List)
                    .map((value) => AuthConfigTemplate.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        proxyDestinationConfig: json_.containsKey('proxyDestinationConfig')
            ? DestinationConfigTemplate.fromJson(
                json_['proxyDestinationConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        registrationDestinationConfig:
            json_.containsKey('registrationDestinationConfig')
                ? DestinationConfigTemplate.fromJson(
                    json_['registrationDestinationConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        triggerConfigVariables: json_.containsKey('triggerConfigVariables')
            ? (json_['triggerConfigVariables'] as core.List)
                .map((value) => ConfigVariableTemplate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );