PushMessageContentInvoice.fromJson constructor

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

Parses a PushMessageContentInvoice from TDLib JSON.

Implementation

factory PushMessageContentInvoice.fromJson(Map<String, dynamic> json) =>
    PushMessageContentInvoice(
      price: _readString(json['price']),
      isPinned: _readBool(json['is_pinned']),
    );