@classmethod
def from_offline_board_entry(cls, board_entry: dict) ->'Board':
    """Construct an Board with data from the offline database snapshot."""
    return cls(board_type=board_entry.get('board_type', ''), board_name=
        board_entry.get('board_name', ''), product_code=board_entry.get(
        'product_code', ''), target_type=board_entry.get('target_type', ''),
        slug=board_entry.get('slug', ''), mbed_os_support=tuple(board_entry
        .get('mbed_os_support', [])), mbed_enabled=tuple(board_entry.get(
        'mbed_enabled', [])), build_variant=tuple(board_entry.get(
        'build_variant', [])))
