ExternalHostedReference.fromJson constructor
ExternalHostedReference.fromJson(
- Map json
Implementation
ExternalHostedReference.fromJson(Map json)
: this(
json['hosted'] is String ? null : json['hosted']['name'],
json['hosted'] is String ? json['hosted'] : json['hosted']['url'],
VersionConstraint.parse(json['version']),
json['hosted'] is String ? false : true);