AmountData.fromJson constructor

AmountData.fromJson(
  1. dynamic data
)

Implementation

factory AmountData.fromJson(dynamic data) {
  var json = DynamicJsonExtension.getJsonMap(data);
  return AmountData(
    value: json['value'],
    formatted: json['formatted']?.toDouble(),
    currency: json['currency'],
    maxPayout: json['maxPayout']?.toDouble(),
  );
}