fromJson static method

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

Implementation

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

  return ChatActionBarJoinRequest(
    title: (json['title'] as String?) ?? '',
    isChannel: (json['is_channel'] as bool?) ?? false,
    requestDate: (json['request_date'] as int?) ?? 0,
  );
}