WorkerResource.fromJson constructor
WorkerResource.fromJson(
- Map json_
Implementation
WorkerResource.fromJson(core.Map json_)
: this(
cpu: json_.containsKey('cpu')
? (json_['cpu'] as core.num).toDouble()
: null,
maxCount: json_.containsKey('maxCount')
? json_['maxCount'] as core.int
: null,
memoryGb: json_.containsKey('memoryGb')
? (json_['memoryGb'] as core.num).toDouble()
: null,
minCount: json_.containsKey('minCount')
? json_['minCount'] as core.int
: null,
storageGb: json_.containsKey('storageGb')
? (json_['storageGb'] as core.num).toDouble()
: null,
);