create static method
NetworkStatistics
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "networkStatistics",
- String special_return_type = "networkStatistics",
- num? since_date,
- List<
NetworkStatisticsEntry> ? entries,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static NetworkStatistics create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "networkStatistics",
String special_return_type = "networkStatistics",
num? since_date,
List<NetworkStatisticsEntry>? entries,
}) {
// NetworkStatistics networkStatistics = NetworkStatistics({
final Map networkStatistics_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"since_date": since_date,
"entries": (entries != null) ? entries.toJson() : null,
};
networkStatistics_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (networkStatistics_data_create_json.containsKey(key) == false) {
networkStatistics_data_create_json[key] = value;
}
});
}
return NetworkStatistics(networkStatistics_data_create_json);
}