RetrieveLandingPage.fromJson constructor

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

Implementation

RetrieveLandingPage.fromJson(Map<String, dynamic> json) {
  sId = json['_id'];
  title = json['title'];
  if (json['contents'] != null) {
    contents = <Contents>[];
    json['contents'].forEach((v) {
      contents!.add(new Contents.fromJson(v));
    });
  }
  sTypename = json['__typename'];
}