Links.fromJson constructor

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

Implementation

Links.fromJson(Map<String, dynamic> json) {
  if (json['self'] != null) {
    self = [];
    json['self'].forEach((v) {
      self!.add(Self.fromJson(v));
    });
  }
  if (json['collection'] != null) {
    collection = [];
    json['collection'].forEach((v) {
      collection!.add(Collection.fromJson(v));
    });
  }
  if (json['up'] != null) {
    up = [];
    json['up'].forEach((v) {
      up!.add(Collection.fromJson(v));
    });
  }
  if (json['describes'] != null) {
    describes = [];
    json['describes'].forEach((v) {
      describes!.add(Collection.fromJson(v));
    });
  }
}