OfferResponse.fromJson constructor

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

Implementation

factory OfferResponse.fromJson(Map<String, dynamic> json) => OfferResponse(
    json['id'],
    json['paging_token'],
    json['seller'],
    Asset.fromJson(json['selling']),
    Asset.fromJson(json['buying']),
    json['amount'],
    json['price'],
    json['sponsor'],
    convertInt(json['last_modified_ledger'])!,
    json['last_modified_time'],
    OfferResponseLinks.fromJson(json['_links']))
  ..rateLimitLimit = convertInt(json['rateLimitLimit'])
  ..rateLimitRemaining = convertInt(json['rateLimitRemaining'])
  ..rateLimitReset = convertInt(json['rateLimitReset']);