create static method

UnconfirmedSession create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "unconfirmedSession",
  3. String special_return_type = "unconfirmedSession",
  4. num? id,
  5. num? log_in_date,
  6. String? device_model,
  7. String? location,
})
override

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

Implementation

static UnconfirmedSession create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "unconfirmedSession",
  String special_return_type = "unconfirmedSession",
  num? id,
  num? log_in_date,
  String? device_model,
  String? location,
}) {
  // UnconfirmedSession unconfirmedSession = UnconfirmedSession({
  final Map unconfirmedSession_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "id": id,
    "log_in_date": log_in_date,
    "device_model": device_model,
    "location": location,
  };

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

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