PaymentFlowsAmountDetailsResourceTip.fromJson constructor

PaymentFlowsAmountDetailsResourceTip.fromJson(
  1. Object? json
)

Implementation

factory PaymentFlowsAmountDetailsResourceTip.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentFlowsAmountDetailsResourceTip(
      amount: map['amount'] == null ? null : (map['amount'] as num).toInt());
}