PersistentDiskSpec.fromJson constructor

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

Implementation

factory PersistentDiskSpec.fromJson(Map<String, dynamic> json) {
  return PersistentDiskSpec(
    diskType: json['diskType'] ?? '',
    diskSizeGb: decodeInt64(json['diskSizeGb']) ?? 0,
  );
}