Prices.fromMap constructor

Prices.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Prices.fromMap(Map<String, dynamic> map) {
  return Prices(
    currency: map['currency'],
    valueCents: map['value_cents'],
  );
}