BalanceTransaction.fromJson constructor

BalanceTransaction.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory BalanceTransaction.fromJson(Map<String, Object?> json) =>
    BalanceTransaction(
      allocatedAmount: inttegro_money.Amount.fromJson(
        (json["allocated_amount"] as Map).cast<String, Object?>(),
      ),
      amount: inttegro_money.Amount.fromJson(
        (json["amount"] as Map).cast<String, Object?>(),
      ),
      id: json["id"] as String,
    );