MoveCall.fromJson constructor

MoveCall.fromJson(
  1. dynamic data
)

Implementation

factory MoveCall.fromJson(dynamic data) {
  dynamic pkg;
  if (data['package'] is String) {
    pkg = data['package'];
  } else {
    pkg = SuiObjectRef.fromJson(data['package']);
  }
  return MoveCall(
    pkg,
    data['module'],
    data['function'],
    data['typeArguments'],
    data['arguments']
  );
}