fromJson static method

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

Implementation

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