create static method

UserPlan create({
  1. String special_type = "userPlan",
  2. String? name,
  3. int? space,
  4. int? private_repos,
  5. int? collaborators,
})
override

return original data json

Implementation

static UserPlan create({
  String special_type = "userPlan",
  String? name,
  int? space,
  int? private_repos,
  int? collaborators,
}) {
  // UserPlan userPlan = UserPlan({

  UserPlan userPlan_data_create = UserPlan({
    "@type": special_type,
    "name": name,
    "space": space,
    "private_repos": private_repos,
    "collaborators": collaborators,
  });

// return userPlan;
  return userPlan_data_create;
}