create static method

BlogsData create({
  1. String special_type = "blogsData",
  2. String? blog_id,
  3. String? title,
  4. String? description,
  5. String? content,
})
override

return original data json

Implementation

static BlogsData create({
  String special_type = "blogsData",
  String? blog_id,
  String? title,
  String? description,
  String? content,
}) {
  // BlogsData blogsData = BlogsData({
  Map blogsData_data_create_json = {
    "@type": special_type,
    "blog_id": blog_id,
    "title": title,
    "description": description,
    "content": content,
  };

  blogsData_data_create_json.removeWhere((key, value) => value == null);
  BlogsData blogsData_data_create = BlogsData(blogsData_data_create_json);

  return blogsData_data_create;
}