create static method
PersonalDocument
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "personalDocument",
- String special_return_type = "personalDocument",
- List<
DatedFile> ? files, - List<
DatedFile> ? translation,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static PersonalDocument create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "personalDocument",
String special_return_type = "personalDocument",
List<DatedFile>? files,
List<DatedFile>? translation,
}) {
// PersonalDocument personalDocument = PersonalDocument({
final Map personalDocument_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"files": (files != null) ? files.toJson() : null,
"translation": (translation != null) ? translation.toJson() : null,
};
personalDocument_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (personalDocument_data_create_json.containsKey(key) == false) {
personalDocument_data_create_json[key] = value;
}
});
}
return PersonalDocument(personalDocument_data_create_json);
}