fromJson static method

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

Implementation

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

  return PaidReactor(
    senderId: MessageSender.fromJson(tdMapFromJson(json['sender_id'])),
    starCount: (json['star_count'] as int?) ?? 0,
    isTop: (json['is_top'] as bool?) ?? false,
    isMe: (json['is_me'] as bool?) ?? false,
    isAnonymous: (json['is_anonymous'] as bool?) ?? false,
  );
}