ProjectConfig.fromJson constructor

ProjectConfig.fromJson(
  1. Map json_
)

Implementation

ProjectConfig.fromJson(core.Map json_)
    : this(
        enablePrivateKeyCheck: json_.containsKey('enablePrivateKeyCheck')
            ? json_['enablePrivateKeyCheck'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pubsubConfigs: json_.containsKey('pubsubConfigs')
            ? (json_['pubsubConfigs'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  PubsubConfig.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );