BarrageCost.from constructor

BarrageCost.from(
  1. Map data
)

Implementation

BarrageCost.from(Map data)
    : cost = data['cost'] ?? 20,
      unit = data['unit'] ?? '积分';