PriceInfo.fromJson constructor

PriceInfo.fromJson(
  1. String id,
  2. Map<String, dynamic> _json
)

Constructs a PriceInfo instance from a JSON object.

The id parameter is the identifier for the price information. The _json parameter is a map containing the price information data.

Implementation

PriceInfo.fromJson(this.id, this._json)
    : this.lastUpdatedAt = Convert.toDateTime(
          _json['last_updated_at'], Helpers.defaultDateTime()) {
  _json.remove('last_updated_at');
}