Amount.fromJson constructor

Amount.fromJson(Map<String, dynamic> json)

Implementation

factory Amount.fromJson(Map<String, dynamic> json) {
  return Amount(
    value: json['value'],
    currency: json['unit'],
  );
}