GoogleFirebaseExtensionsV1betaExtensionInstanceConfig.fromJson constructor

GoogleFirebaseExtensionsV1betaExtensionInstanceConfig.fromJson(
  1. Map _json
)

Implementation

GoogleFirebaseExtensionsV1betaExtensionInstanceConfig.fromJson(core.Map _json)
    : this(
        allowedEventTypes: _json.containsKey('allowedEventTypes')
            ? (_json['allowedEventTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        eventarcChannel: _json.containsKey('eventarcChannel')
            ? _json['eventarcChannel'] as core.String
            : null,
        extensionRef: _json.containsKey('extensionRef')
            ? _json['extensionRef'] as core.String
            : null,
        extensionVersion: _json.containsKey('extensionVersion')
            ? _json['extensionVersion'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        params: _json.containsKey('params')
            ? (_json['params'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        populatedPostinstallContent:
            _json.containsKey('populatedPostinstallContent')
                ? _json['populatedPostinstallContent'] as core.String
                : null,
        source: _json.containsKey('source')
            ? GoogleFirebaseExtensionsV1betaExtensionSource.fromJson(
                _json['source'] as core.Map<core.String, core.dynamic>)
            : null,
      );