DedicatedDatabaseSpecification.fromMap constructor
DedicatedDatabaseSpecification.fromMap(
- Map<String, dynamic> map
)
Implementation
factory DedicatedDatabaseSpecification.fromMap(
Map<String, dynamic> map,
) {
map = {
'slug': "",
'name': "",
'price': 0,
'storageOverageRate': 0,
'bandwidthOverageRate': 0,
'replicaRate': 0,
'pitrRate': 0,
'cpu': 0,
'memory': 0,
'maxConnections': 0,
'includedStorage': 0,
'includedBandwidth': 0,
'enabled': false,
...map,
};
return DedicatedDatabaseSpecification(
slug: map['slug'].toString(),
name: map['name'].toString(),
price: map['price'].toDouble(),
storageOverageRate: map['storageOverageRate'].toDouble(),
bandwidthOverageRate: map['bandwidthOverageRate'].toDouble(),
replicaRate: map['replicaRate'].toDouble(),
pitrRate: map['pitrRate'].toDouble(),
cpu: map['cpu'],
memory: map['memory'],
maxConnections: map['maxConnections'],
includedStorage: map['includedStorage'],
includedBandwidth: map['includedBandwidth'],
enabled: map['enabled'],
);
}