Environment.fromJson constructor

Environment.fromJson(
  1. Map json
)

Implementation

factory Environment.fromJson(Map json) {
  final p = parseJson(json, consumeMap: true);
  return Environment(
      p.single('sdk', (v) => VersionConstraint.parse(v)), p.unconsumed);
}