Attributes.fromJson constructor

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

Implementation

factory Attributes.fromJson(Map<String, dynamic> json) {
  var attributes = Attributes.empty();
  json.forEach((key, value) {
    attributes.add(Attribute.fromObject(key, value));
  });
  return attributes;
}