CollectionDetailsToggle.fromJson constructor
Implementation
factory CollectionDetailsToggle.fromJson(Map<String, dynamic> json) {
final key = json["collectionDetailsToggle"]["key"];
final List<dynamic> value = json["collectionDetailsToggle"]["value"];
switch (key) {
case "NoneLayout":
return none;
case "Clear":
return clear;
default:
return CollectionDetailsToggle.set(
collection: CollectionDetailsV1.fromJson(value[0]));
}
}