PayAllSui.fromJson constructor

PayAllSui.fromJson(
  1. dynamic data
)

Implementation

factory PayAllSui.fromJson(dynamic data) {
  final coinsList = (data['coins'] as List)
    .map((x) => SuiObjectRef.fromJson(x))
    .toList();

  return PayAllSui(
    coinsList,
    data['recipient']
  );
}