Price.fromJson constructor

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

Implementation

Price.fromJson(Map<String, dynamic> json) {
  totalPrice = json['totalPrice'].toDouble();
  resellerPrice =
      json['resellerPrice'] != null ? json['resellerPrice'].toDouble() : 0.0;
  sTypename = json['__typename'];
}