PreparedInlineMessage.fromJson constructor

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

Creates a PreparedInlineMessage object from a JSON map.

Implementation

factory PreparedInlineMessage.fromJson(Map<String, dynamic> json) {
  return PreparedInlineMessage(
    id: json['id'],
    expirationDate: json['expiration_date'],
  );
}