toMap method

  1. @override
DynamicMap? toMap()
override

Convert to DynamicMap to pass values to the server side.

サーバー側に値を渡すためにDynamicMapに変換します。

Implementation

@override
DynamicMap? toMap() {
  return {
    "userId": userId,
    "orderId": orderId,
    if (refundAmount != null) "refundAmount": refundAmount,
  };
}