create static method

Birthdate create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "birthdate",
  3. String special_return_type = "birthdate",
  4. num? day,
  5. num? month,
  6. num? year,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static Birthdate create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "birthdate",
  String special_return_type = "birthdate",
  num? day,
  num? month,
  num? year,
}) {
  // Birthdate birthdate = Birthdate({
  final Map birthdate_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "day": day,
    "month": month,
    "year": year,
  };

  birthdate_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (birthdate_data_create_json.containsKey(key) == false) {
        birthdate_data_create_json[key] = value;
      }
    });
  }
  return Birthdate(birthdate_data_create_json);
}