RuleChainMetaData.fromJson constructor

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

Implementation

RuleChainMetaData.fromJson(Map<String, dynamic> json)
    : ruleChainId = RuleChainId.fromJson(json['ruleChainId']),
      firstNodeIndex = json['firstNodeIndex'],
      nodes = json['nodes'] != null
          ? (json['nodes'] as List<dynamic>)
              .map((e) => RuleNode.fromJson(e))
              .toList()
          : null,
      connections = json['connections'] != null
          ? (json['connections'] as List<dynamic>)
              .map((e) => NodeConnectionInfo.fromJson(e))
              .toList()
          : null,
      ruleChainConnections = json['ruleChainConnections'] != null
          ? (json['ruleChainConnections'] as List<dynamic>)
              .map((e) => RuleChainConnectionInfo.fromJson(e))
              .toList()
          : null;