Repo.fromJson constructor

Repo.fromJson(
  1. Map json_
)

Implementation

Repo.fromJson(core.Map json_)
    : this(
        mirrorConfig: json_.containsKey('mirrorConfig')
            ? MirrorConfig.fromJson(
                json_['mirrorConfig'] as core.Map<core.String, core.dynamic>)
            : 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,
        size: json_.containsKey('size') ? json_['size'] as core.String : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );