Collections.fromJson constructor

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

Implementation

Collections.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  title = json['title'];
  description = json['description'];
  image = json['image'] != null ? Image.fromJson(json['image']) : null;
  handle = json['handle'];
  updatedAt = json['updatedAt'];
}