TargetConfiguration.fromJson constructor

TargetConfiguration.fromJson(
  1. Map json_
)

Implementation

TargetConfiguration.fromJson(core.Map json_)
    : this(
        config: json_.containsKey('config')
            ? ConfigFile.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        imports: json_.containsKey('imports')
            ? (json_['imports'] as core.List)
                .map((value) => ImportFile.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );