CollectionItem.fromJson constructor

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

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));
    });
  }
}