Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes.fromJson constructor
Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes.fromJson()
Implementation
factory Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes.fromJson(
Map<String, dynamic> json,
) {
switch (json["__typename"] as String) {
case "MakeMoveVecCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$MakeMoveVecCommand.fromJson(
json,
);
case "MergeCoinsCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$MergeCoinsCommand.fromJson(
json,
);
case "MoveCallCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$MoveCallCommand.fromJson(
json,
);
case "PublishCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$PublishCommand.fromJson(
json,
);
case "SplitCoinsCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$SplitCoinsCommand.fromJson(
json,
);
case "TransferObjectsCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$TransferObjectsCommand.fromJson(
json,
);
case "UpgradeCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$UpgradeCommand.fromJson(
json,
);
case "OtherCommand":
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes$$OtherCommand.fromJson(
json,
);
default:
final l$$__typename = json['__typename'];
return Fragment$TransactionHistoryFields$kind$$ProgrammableTransaction$commands$nodes(
$__typename: (l$$__typename as String),
);
}
}