Data.fromJson constructor

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

Implementation

Data.fromJson(Map<String, dynamic> json) {
  type = json['type'];
  id = json['id'];
  attributes = json['attributes'] != null
      ? new Attributes.fromJson(json['attributes'])
      : null;
}