Collection.fromJson constructor

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

Implementation

Collection.fromJson(Map<String, dynamic> json) {
  title = json['title'];
  titleId = json['title-id'];
  if (json['content'] != null) {
    content = <Content>[];
    json['content'].forEach((v) {
      content!.add(Content.fromJson(v));
    });
  }
}