SessionTransferData.fromJson constructor

SessionTransferData.fromJson(
  1. Object? json
)

Implementation

factory SessionTransferData.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionTransferData(
    amountPercent: map['amount_percent'] == null
        ? null
        : (map['amount_percent'] as num).toDouble(),
    destination: (map['destination'] as String),
  );
}