BuildDefinition.fromJson constructor

BuildDefinition.fromJson(
  1. Map json_
)

Implementation

BuildDefinition.fromJson(core.Map json_)
    : this(
        buildType: json_.containsKey('buildType')
            ? json_['buildType'] as core.String
            : null,
        externalParameters: json_.containsKey('externalParameters')
            ? json_['externalParameters']
                as core.Map<core.String, core.dynamic>
            : null,
        internalParameters: json_.containsKey('internalParameters')
            ? json_['internalParameters']
                as core.Map<core.String, core.dynamic>
            : null,
        resolvedDependencies: json_.containsKey('resolvedDependencies')
            ? (json_['resolvedDependencies'] as core.List)
                .map((value) => ResourceDescriptor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );