Tmpfs.fromJson constructor

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

Implementation

factory Tmpfs.fromJson(Map<String, dynamic> json) {
  return Tmpfs(
    containerPath: json['containerPath'] as String,
    size: json['size'] as int,
    mountOptions: (json['mountOptions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}