create static method
IdentityDocument
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "identityDocument",
- String special_return_type = "identityDocument",
- String? number,
- Date? expiration_date,
- DatedFile? front_side,
- DatedFile? reverse_side,
- DatedFile? selfie,
- List<
DatedFile> ? translation,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static IdentityDocument create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "identityDocument",
String special_return_type = "identityDocument",
String? number,
Date? expiration_date,
DatedFile? front_side,
DatedFile? reverse_side,
DatedFile? selfie,
List<DatedFile>? translation,
}) {
// IdentityDocument identityDocument = IdentityDocument({
final Map identityDocument_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"number": number,
"expiration_date": (expiration_date != null) ? expiration_date.toJson() : null,
"front_side": (front_side != null) ? front_side.toJson() : null,
"reverse_side": (reverse_side != null) ? reverse_side.toJson() : null,
"selfie": (selfie != null) ? selfie.toJson() : null,
"translation": (translation != null) ? translation.toJson() : null,
};
identityDocument_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (identityDocument_data_create_json.containsKey(key) == false) {
identityDocument_data_create_json[key] = value;
}
});
}
return IdentityDocument(identityDocument_data_create_json);
}