create static method
NetworkStatisticsEntryFile
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "networkStatisticsEntryFile",
- String special_return_type = "networkStatisticsEntry",
- FileType? file_type,
- NetworkType? network_type,
- num? sent_bytes,
- num? received_bytes,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static NetworkStatisticsEntryFile create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "networkStatisticsEntryFile",
String special_return_type = "networkStatisticsEntry",
FileType? file_type,
NetworkType? network_type,
num? sent_bytes,
num? received_bytes,
}) {
// NetworkStatisticsEntryFile networkStatisticsEntryFile = NetworkStatisticsEntryFile({
final Map networkStatisticsEntryFile_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"file_type": (file_type != null) ? file_type.toJson() : null,
"network_type": (network_type != null) ? network_type.toJson() : null,
"sent_bytes": sent_bytes,
"received_bytes": received_bytes,
};
networkStatisticsEntryFile_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (networkStatisticsEntryFile_data_create_json.containsKey(key) == false) {
networkStatisticsEntryFile_data_create_json[key] = value;
}
});
}
return NetworkStatisticsEntryFile(networkStatisticsEntryFile_data_create_json);
}