create static method

UserSupportInfo create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "userSupportInfo",
  3. String special_return_type = "userSupportInfo",
  4. FormattedText? message,
  5. String? author,
  6. num? date,
})
override

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

Implementation

static UserSupportInfo create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "userSupportInfo",
  String special_return_type = "userSupportInfo",
  FormattedText? message,
  String? author,
  num? date,
}) {
  // UserSupportInfo userSupportInfo = UserSupportInfo({
  final Map userSupportInfo_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "message": (message != null) ? message.toJson() : null,
    "author": author,
    "date": date,
  };

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

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