NodeParamConnectedEvent.fromJson constructor
NodeParamConnectedEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NodeParamConnectedEvent.fromJson(Map<String, dynamic> json) {
return NodeParamConnectedEvent(
contextId: GraphObjectId.fromJson(json['contextId'] as String),
sourceId: GraphObjectId.fromJson(json['sourceId'] as String),
destinationId: GraphObjectId.fromJson(json['destinationId'] as String),
sourceOutputIndex:
json.containsKey('sourceOutputIndex')
? json['sourceOutputIndex'] as num
: null,
);
}