create static method

Plan create({
  1. String special_type = "plan",
  2. String? name,
  3. num? space,
  4. num? private_repos,
  5. num? collaborators,
})
override

return original data json

Implementation

static Plan create({

  String special_type = "plan",
  String? name,
  num? space,
  num? private_repos,
  num? collaborators,
})  {
  // Plan plan = Plan({
Map plan_data_create_json = {

    "@type": special_type,
    "name": name,
    "space": space,
    "private_repos": private_repos,
    "collaborators": collaborators,


};


        plan_data_create_json.removeWhere((key, value) => value == null);
Plan plan_data_create = Plan(plan_data_create_json);

return plan_data_create;



    }