SuiTransactionKind.fromJson constructor

SuiTransactionKind.fromJson(
  1. dynamic data
)

Implementation

factory SuiTransactionKind.fromJson(dynamic data) {
  return SuiTransactionKind(
    data['TransferObject'] != null ? TransferObject.fromJson(data['TransferObject']) : null,
    data['Publish'] != null ? SuiMovePackage.fromJson(data['Publish']) : null,
    data['Call'] != null ? MoveCall.fromJson(data['Call']) : null,
    data['TransferSui'] != null ? SuiTransferSui.fromJson(data['TransferSui']) : null,
    data['ChangeEpoch'] != null ? SuiChangeEpoch.fromJson(data['ChangeEpoch']) : null,
    data['Pay'] != null ? Pay.fromJson(data['Pay']) : null,
    data['PaySui'] != null ? PaySui.fromJson(data['PaySui']) : null,
    data['PayAllSui'] != null ? PayAllSui.fromJson(data['PayAllSui']) : null
  );
}