Order.fromJson constructor

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

Creates a new instance of Order from a JSON object.

Implementation

factory Order.fromJson(Map<String, dynamic> json) {
  return Order(
    currency: json['currency'],
    amount: json['amount'],
    email: json['email'],
  );
}