NodeProperties.fromJson constructor

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

Implementation

factory NodeProperties.fromJson(Map<String, dynamic> json) {
  return NodeProperties(
    mainNode: json['mainNode'] as int,
    nodeRangeProperties: (json['nodeRangeProperties'] as List)
        .whereNotNull()
        .map((e) => NodeRangeProperty.fromJson(e as Map<String, dynamic>))
        .toList(),
    numNodes: json['numNodes'] as int,
  );
}