CourseDataModel.fromJson constructor

CourseDataModel.fromJson(
  1. dynamic json
)

Implementation

CourseDataModel.fromJson(var json) {
  id = json['ID'];
  postAuthor = json['post_author'];
  postDate = json['post_date'];
  postDateGmt = json['post_date_gmt'];
  postContent = json['post_content'];
  postTitle = json['post_title'];
  postExcerpt = json['post_excerpt'];
  postStatus = json['post_status'];
  commentStatus = json['comment_status'];
  pingStatus = json['ping_status'];
  commentStatus = json['comment_status'];
  pingStatus = json['ping_status'];
  postPassword = json['post_password'];
  postName = json['post_name'];
  toPing = json['to_ping'];
  pinged = json['pinged'];
  postModified = json['post_modified'];
  postModifiedGmt = json['post_modified_gmt'];
  postContentFiltered = json['post_content_filtered'];
  postParent = json['post_parent'];
  guid = json['guid'];
  menuOrder = json['menu_order'];
  postType = json['post_type'];
  postMimeType = json['post_mime_type'];
  commentCount = json['comment_count'];
  courseCategory = CategoryDataModel.fromJson(json['course_category'][0]);
}