Config.fromJson constructor

Config.fromJson(
  1. Map json_
)

Implementation

Config.fromJson(core.Map json_)
    : this(
        availableImages: json_.containsKey('availableImages')
            ? (json_['availableImages'] as core.List)
                .map((value) => ImageRelease.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        defaultValues: json_.containsKey('defaultValues')
            ? DefaultValues.fromJson(
                json_['defaultValues'] as core.Map<core.String, core.dynamic>)
            : null,
        supportedValues: json_.containsKey('supportedValues')
            ? SupportedValues.fromJson(json_['supportedValues']
                as core.Map<core.String, core.dynamic>)
            : null,
      );