fromJson static method

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

Implementation

static ImageStorageMountSpec fromJson(Map<String, dynamic> json) {
  return ImageStorageMountSpec(
    path: json['path'] as String,
    subpath: json['subpath'] as String?,
    readOnly: (json['read_only'] as bool?) ?? true,
    image: json['image'] as String,
  );
}