RelationalDatabaseBundle.fromJson constructor

RelationalDatabaseBundle.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RelationalDatabaseBundle.fromJson(Map<String, dynamic> json) {
  return RelationalDatabaseBundle(
    bundleId: json['bundleId'] as String?,
    cpuCount: json['cpuCount'] as int?,
    diskSizeInGb: json['diskSizeInGb'] as int?,
    isActive: json['isActive'] as bool?,
    isEncrypted: json['isEncrypted'] as bool?,
    name: json['name'] as String?,
    price: json['price'] as double?,
    ramSizeInGb: json['ramSizeInGb'] as double?,
    transferPerMonthInGb: json['transferPerMonthInGb'] as int?,
  );
}