FrozenV2Model.fromJson constructor

FrozenV2Model.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FrozenV2Model.fromJson(Map<String, dynamic> json) {
  return FrozenV2Model._(
    amount: BigintUtils.tryParse(json["amount"]) ?? BigInt.zero,
    type: json['type'] ?? ResourceCode.bandWidth.name,
  );
}