Config.fromJson constructor

Config.fromJson(
  1. Map json_
)

Implementation

Config.fromJson(core.Map json_)
    : this(
        defaultSkaffoldVersion: json_.containsKey('defaultSkaffoldVersion')
            ? json_['defaultSkaffoldVersion'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        supportedVersions: json_.containsKey('supportedVersions')
            ? (json_['supportedVersions'] as core.List)
                .map((value) => SkaffoldVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );