QWFreshness.fromJson constructor

QWFreshness.fromJson(
  1. Map<String, dynamic> json
)

Implementation

QWFreshness.fromJson(Map<String, dynamic> json) {
  label = json['label'];
  name = json['name'];
  type = json['type'];
  selected = json['selected'];
  if (json['values'] != null) {
    values = <QWValues>[];
    json['values'].forEach((v) {
      values.add(QWValues.fromJson(v));
    });
  }
}