blob: 7a7d427cdc08afb59abe88eca7f4e82c293253c9 [file] [log] [blame]
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'dependency.dart';
// **************************************************************************
// Generator: JsonSerializableGenerator
// **************************************************************************
SdkDependency _$SdkDependencyFromJson(Map json) => $checkedNew(
'SdkDependency',
json,
() => new SdkDependency($checkedConvert(json, 'sdk', (v) => v as String),
version: $checkedConvert(json, 'version',
(v) => v == null ? null : _constraintFromString(v as String))));
GitDependency _$GitDependencyFromJson(Map json) => $checkedNew(
'GitDependency',
json,
() => new GitDependency(
$checkedConvert(
json, 'url', (v) => v == null ? null : _parseUri(v as String)),
$checkedConvert(json, 'ref', (v) => v as String),
$checkedConvert(json, 'path', (v) => v as String)));
HostedDependency _$HostedDependencyFromJson(Map json) => $checkedNew(
'HostedDependency',
json,
() => new HostedDependency(
version: $checkedConvert(json, 'version',
(v) => v == null ? null : _constraintFromString(v as String))));