CodeGenNode.fromJson constructor

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

Implementation

factory CodeGenNode.fromJson(Map<String, dynamic> json) {
  return CodeGenNode(
    args: (json['Args'] as List)
        .whereNotNull()
        .map((e) => CodeGenNodeArg.fromJson(e as Map<String, dynamic>))
        .toList(),
    id: json['Id'] as String,
    nodeType: json['NodeType'] as String,
    lineNumber: json['LineNumber'] as int?,
  );
}