2023-06-07 06:22:27 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'digital_ocean_server_info.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
DigitalOceanVolume _$DigitalOceanVolumeFromJson(Map<String, dynamic> json) =>
|
|
|
|
DigitalOceanVolume(
|
|
|
|
json['id'] as String,
|
|
|
|
json['name'] as String,
|
2024-05-15 11:04:32 +00:00
|
|
|
(json['size_gigabytes'] as num).toInt(),
|
|
|
|
(json['droplet_ids'] as List<dynamic>?)
|
|
|
|
?.map((e) => (e as num).toInt())
|
|
|
|
.toList(),
|
2024-08-14 03:12:47 +00:00
|
|
|
DigitalOceanLocation.fromJson(json['region'] as Map<String, dynamic>),
|
2023-06-07 06:22:27 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$DigitalOceanVolumeToJson(DigitalOceanVolume instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'id': instance.id,
|
|
|
|
'name': instance.name,
|
|
|
|
'droplet_ids': instance.dropletIds,
|
|
|
|
'size_gigabytes': instance.sizeGigabytes,
|
2024-08-14 03:12:47 +00:00
|
|
|
'region': instance.region,
|
2023-06-07 06:22:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
DigitalOceanLocation _$DigitalOceanLocationFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
DigitalOceanLocation(
|
|
|
|
json['slug'] as String,
|
|
|
|
json['name'] as String,
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$DigitalOceanLocationToJson(
|
|
|
|
DigitalOceanLocation instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'slug': instance.slug,
|
|
|
|
'name': instance.name,
|
|
|
|
};
|
2023-06-13 02:48:29 +00:00
|
|
|
|
|
|
|
DigitalOceanServerType _$DigitalOceanServerTypeFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
DigitalOceanServerType(
|
|
|
|
(json['regions'] as List<dynamic>).map((e) => e as String).toList(),
|
|
|
|
(json['memory'] as num).toDouble(),
|
|
|
|
json['description'] as String,
|
2024-05-15 11:04:32 +00:00
|
|
|
(json['disk'] as num).toInt(),
|
2023-06-13 02:48:29 +00:00
|
|
|
(json['price_monthly'] as num).toDouble(),
|
|
|
|
json['slug'] as String,
|
2024-05-15 11:04:32 +00:00
|
|
|
(json['vcpus'] as num).toInt(),
|
2023-06-13 02:48:29 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$DigitalOceanServerTypeToJson(
|
|
|
|
DigitalOceanServerType instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'regions': instance.regions,
|
|
|
|
'memory': instance.memory,
|
|
|
|
'slug': instance.slug,
|
|
|
|
'description': instance.description,
|
|
|
|
'vcpus': instance.vcpus,
|
|
|
|
'disk': instance.disk,
|
|
|
|
'price_monthly': instance.priceMonthly,
|
|
|
|
};
|