PushConfig.fromJson constructor

PushConfig.fromJson(
  1. Map json_
)

Implementation

PushConfig.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        noWrapper: json_.containsKey('noWrapper')
            ? NoWrapper.fromJson(
                json_['noWrapper'] as core.Map<core.String, core.dynamic>)
            : null,
        oidcToken: json_.containsKey('oidcToken')
            ? OidcToken.fromJson(
                json_['oidcToken'] as core.Map<core.String, core.dynamic>)
            : null,
        pubsubWrapper: json_.containsKey('pubsubWrapper')
            ? PubsubWrapper.fromJson(
                json_['pubsubWrapper'] as core.Map<core.String, core.dynamic>)
            : null,
        pushEndpoint: json_.containsKey('pushEndpoint')
            ? json_['pushEndpoint'] as core.String
            : null,
      );