CollectionItem.fromJson constructor
Implementation
CollectionItem.fromJson(Map<String, dynamic> json) {
status = json['status'];
if (json['collections'] != null) {
collections = <Collections>[];
json['collections'].forEach((v) {
collections!.add(Collections.fromJson(v));
});
}
if (json['errors'] != null) {
errors = <Errors>[];
json['errors'].forEach((v) {
errors!.add(Errors.fromJson(v));
});
}
}