NodeParamDisconnectedEvent.fromJson constructor

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

Implementation

factory NodeParamDisconnectedEvent.fromJson(Map<String, dynamic> json) {
  return NodeParamDisconnectedEvent(
    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,
  );
}