create static method
RemoteFile
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "remoteFile",
- String special_return_type = "remoteFile",
- String? id,
- String? unique_id,
- bool? is_uploading_active,
- bool? is_uploading_completed,
- num? uploaded_size,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static RemoteFile create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "remoteFile",
String special_return_type = "remoteFile",
String? id,
String? unique_id,
bool? is_uploading_active,
bool? is_uploading_completed,
num? uploaded_size,
}) {
// RemoteFile remoteFile = RemoteFile({
final Map remoteFile_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"unique_id": unique_id,
"is_uploading_active": is_uploading_active,
"is_uploading_completed": is_uploading_completed,
"uploaded_size": uploaded_size,
};
remoteFile_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (remoteFile_data_create_json.containsKey(key) == false) {
remoteFile_data_create_json[key] = value;
}
});
}
return RemoteFile(remoteFile_data_create_json);
}