fromJson static method

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

Implementation

static PreparedInlineMessageId? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PreparedInlineMessageId(
    id: (json['id'] as String?) ?? '',
    expirationDate: (json['expiration_date'] as int?) ?? 0,
  );
}