ChatRevenueTransactionType.fromJson constructor

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

Parses whichever ChatRevenueTransactionType subtype the JSON describes.

Implementation

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