Collection<T>.fromJson constructor

Collection<T>.fromJson(
  1. Map<Object?, Object?> json
)

Decode a Collection from a Map

This is internally used by the code-generator to decode configs from the build.yaml

Implementation

Collection.fromJson(Map<Object?, Object?> json)
    : this(
        json['path']! as String,
        name: json['name'] as String?,
        prefix: json['prefix'] as String?,
      );