Price.fromJson constructor

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

Implementation

factory Price.fromJson(Map<String, dynamic> json) => Price(
  json['formatted'] as String,
  (json['amountMicros'] as num).round(),
  json['currencyCode'] as String,
);