CSINodeSpec.fromJson constructor
Creates a CSINodeSpec from JSON data.
Implementation
factory CSINodeSpec.fromJson(Map<String, dynamic> json) {
final tempDriversJson = json['drivers'];
final List<CSINodeDriver> tempDrivers = List<dynamic>.from(tempDriversJson)
.map(
(e) => CSINodeDriver.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList();
return CSINodeSpec(
drivers: tempDrivers,
);
}