LinuxParameters.fromJson constructor
LinuxParameters.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LinuxParameters.fromJson(Map<String, dynamic> json) {
return LinuxParameters(
devices: (json['devices'] as List?)
?.whereNotNull()
.map((e) => Device.fromJson(e as Map<String, dynamic>))
.toList(),
initProcessEnabled: json['initProcessEnabled'] as bool?,
maxSwap: json['maxSwap'] as int?,
sharedMemorySize: json['sharedMemorySize'] as int?,
swappiness: json['swappiness'] as int?,
tmpfs: (json['tmpfs'] as List?)
?.whereNotNull()
.map((e) => Tmpfs.fromJson(e as Map<String, dynamic>))
.toList(),
);
}