GiftResalePrice.fromJson constructor

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

Parses whichever GiftResalePrice subtype the JSON describes.

Implementation

factory GiftResalePrice.fromJson(Map<String, dynamic> json) {
  final object = tdObjectFactories[json['@type']]?.call(json);
  return object is GiftResalePrice ? object : UndecodedGiftResalePrice(json);
}